package com.softwarerusher.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TOrder entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TOrder implements java.io.Serializable {

	// Fields

	private Integer orderId;
	private TShop TShop;
	private TMember TMember;
	private Date orderTime;
	private String orderPhone;
	private String orderAddr;
	private String isHandled;
	private Double meoney;
	private Set TOrderdetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public TOrder() {
	}

	/** minimal constructor */
	public TOrder(TShop TShop, TMember TMember, Date orderTime,
			String orderPhone, String orderAddr, String isHandled, Double meoney) {
		this.TShop = TShop;
		this.TMember = TMember;
		this.orderTime = orderTime;
		this.orderPhone = orderPhone;
		this.orderAddr = orderAddr;
		this.isHandled = isHandled;
		this.meoney = meoney;
	}

	/** full constructor */
	public TOrder(TShop TShop, TMember TMember, Date orderTime,
			String orderPhone, String orderAddr, String isHandled,
			Double meoney, Set TOrderdetails) {
		this.TShop = TShop;
		this.TMember = TMember;
		this.orderTime = orderTime;
		this.orderPhone = orderPhone;
		this.orderAddr = orderAddr;
		this.isHandled = isHandled;
		this.meoney = meoney;
		this.TOrderdetails = TOrderdetails;
	}

	// Property accessors

	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public TShop getTShop() {
		return this.TShop;
	}

	public void setTShop(TShop TShop) {
		this.TShop = TShop;
	}

	public TMember getTMember() {
		return this.TMember;
	}

	public void setTMember(TMember TMember) {
		this.TMember = TMember;
	}

	public Date getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public String getOrderPhone() {
		return this.orderPhone;
	}

	public void setOrderPhone(String orderPhone) {
		this.orderPhone = orderPhone;
	}

	public String getOrderAddr() {
		return this.orderAddr;
	}

	public void setOrderAddr(String orderAddr) {
		this.orderAddr = orderAddr;
	}

	public String getIsHandled() {
		return this.isHandled;
	}

	public void setIsHandled(String isHandled) {
		this.isHandled = isHandled;
	}

	public Double getMeoney() {
		return this.meoney;
	}

	public void setMeoney(Double meoney) {
		this.meoney = meoney;
	}

	public Set getTOrderdetails() {
		return this.TOrderdetails;
	}

	public void setTOrderdetails(Set TOrderdetails) {
		this.TOrderdetails = TOrderdetails;
	}

}